﻿using Autofac;
using Common.UnitTests;
using Moq;
using NUnit.Framework;
using Wombat.Core.Gates;
using Wombat.Core.Services;

namespace Core.UnitTests.Gates
{
    public class StorageBaseGateUnitTests: UnitTestBase
    {
        [Test]
        public void DoesInitialize()
        {
            var configSvc = new Mock<IConfigurationService>();
            configSvc.Setup(c => c.ReadConfigurations()).Verifiable();
            AddRegistration(b => b.Register(c => configSvc.Object));

            var storageBaseGete = UnitTestContainer.Resolve<StorageBaseGate>();
            storageBaseGete.Initialize();
            configSvc.VerifyAll();
        }
    }
}
